/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sv.edu.ufg.ejemplos.obtenerentrada.teclado;
import java.io.*;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
 *
 * @author BESOMENJCHI
 */
public class lectorConsola {
    
    public static void main(String[] args) {
        
        BufferedReader dataIn = new BufferedReader (new InputStreamReader(System.in));
        System.out.println("Ingrese su nombe");
        try {
            
            String temp = dataIn.readLine();
            System.out.println("Su nombre es: " + temp);
        } catch (IOException e) {
            System.err.println("Error de entrada y salida al leer la terminal");
        }
        finally{
            try {
                dataIn.close();
            } catch (IOException ex) {
                ex.printStackTrace();
            }
        
        
        }
    }
    
    
    
}
